package com.hkts.naturalgas.organizational.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.naturalgas.organizational.entity.HontDepartment;
import com.hkts.naturalgas.organizational.orgVo.DepartmentAndUserVo;
import com.hkts.naturalgas.organizational.orgVo.HontDepartmentAndUserVo;
import com.hkts.naturalgas.organizational.orgVo.PossessDepartVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yck
 * @since 2020-12-23
 */
public interface IHontDepartmentService extends IService<HontDepartment> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param hontDepartment
     * @return
     */
    IPage<HontDepartment> selectPage(Page<HontDepartment> page, HontDepartment hontDepartment);

    List<HontDepartment> selectList(HontDepartment hontDepartment);


    List<HontDepartmentAndUserVo> getHontUserAndTeam();

    Boolean isParent(String depatmentId);

    List<PossessDepartVo> getHontUserPossess();

    List<HontDepartment> getAllParentDepart();
}